package com.example.demo.Service;

import com.github.pagehelper.PageInfo;
import com.example.demo.Entity.Student;

import java.util.List;

//  Service类设计成一个接口，使控制层只依赖这个接口，定义接口，业务逻辑
public interface StudentService {
    PageInfo<Student> findAllStudent(Integer pageIndex, Integer pageSize);

    Integer addStudentInfo(Student student);

    Student findStudentByID(Integer stuid);

    Integer updateStudentID(Student student);

    Integer deleteStudentInfo(Integer stuid);

    PageInfo<Student> findStudentByClsIDStuName(Integer pageIndex,Integer pageSize,Integer clsid,String stu_name);

    PageInfo<Student> findStudentByStuName(Integer pageIndex,Integer pageSize,String stu_name);
}
